package com.hands.transfercenter.controller;

import javax.annotation.Resource;

import com.hands.transfercenter.VoiceInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.ExecutionException;

@RestController
@RequestMapping("/v1")
public class TestController {
	
    @Autowired
	private VoiceInfoService voiceInfoService;

	@GetMapping("/voice")
	public String test(String msg) throws ExecutionException, InterruptedException {

		voiceInfoService.VoiceInfo(msg,"555454");
		return msg;

	}

}
